﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace DataAccessLayer.Models
{
    [MetadataType(typeof(SecurityMetadata))]
    public partial class Security
    {
    }

    public class SecurityMetadata
    {
        [DisplayName("Security Amount")]
        [Required(ErrorMessage = "Security Amount is mandatory")]
        public float Amount { get; set; }

        [DisplayName("Relationship To Borrower")]
        public int RelToBorrowerCode { get; set; }

        //[DisplayName("Mortgagor Id")]
        //public int MortgagorId { get; set; }

        //[DisplayName("Guarantor Id")]
        //public int GuarantorId { get; set; }
    }
}
